<!-- <template>
  <textarea id="default-editor" v-model="value">
    // 展示默认数据的方式1
  </textarea>
  <a-button @click="handleSubmit">click</a-button>
</template>

<script>
import { defineComponent } from 'vue'
export default defineComponent({
  data() {
    return {
      value:
          '<p><em>Hello</em>, <span style="text-decoration: underline;"><strong>World!</strong></span></p>'
    }
  },
  mounted() {
    tinymce.init({
      selector: 'textarea#default-editor'
    })
  },
  methods: {
    handleSubmit() {
      // 获取内容的方式
      console.log(tinymce.activeEditor.getContent())
    }
  }
})
</script>

<style lang="scss" scoped></style> -->
